package VN.EDU.IMIC.DEVELOPER.VUVANLUANLEVEL2.EXAM01;

public class TraingleModels implements IGeometricObject{

	@Override
	public double getArea(TraingleEntity Obj) {
		double result = 0;
		double p = (Obj.getSide1() + Obj.getSide2() + Obj.getSide3())/2;
	result = Math.sqrt(p*(p - Obj.getSide1())*(p - Obj.getSide2())*(p - Obj.getSide3()));
	return result;
	}

	@Override
	public double getpermeter(TraingleEntity Obj) {
		double result = 0;
		result = Obj.getSide1() + Obj.getSide2() + Obj.getSide3();
		return result;
	}
	


}
